/*
 * @Author: 490912587@qq.com
 * @Date: 2024-12-10 14:56:42
 * @LastEditors: 490912587@qq.com
 * @LastEditTime: 2024-12-10 16:28:50
 * @FilePath: \ui\src\main.js
 * @Description: 
 */
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import store from './store'
// 引入echarts
import Echarts from 'vue-echarts'
import * as echarts from 'echarts'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App);
// 使用组件
app.component('e-charts', Echarts)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(store);
app.use(ElementPlus);
// 全局挂载 echarts
app.config.globalProperties.$echarts = echarts
window.$store = store;
app.mount('#app')

